import request from '@/utils/request'

export function getItemConfig() {
  return request({
    url: '/gm/config/item/list',
    method: 'get'
  })
}

export function getRechargeConfig(query) {
  return request({
    url: '/gm/config/recharge/list',
    method: 'get',
    params: query
  })
}

export function deleteRechargeConfig(data) {
  return request({
    url: '/gm/config/recharge/delete',
    method: 'post',
    data
  })
}

export function getOftenConfig(query) {
  return request({
    url: '/gm/config/often/list',
    method: 'get',
    params: query
  })
}

export function getOftenGroupConfigByGroup(query) {
  return request({
    url: '/gm/config/oftengroup/group',
    method: 'get',
    params: query
  })
}

export function getOftenGroupConfig(query) {
  return request({
    url: '/gm/config/oftengroup/list',
    method: 'get',
    params: query
  })
}

export function getCommondConfigInfo(query) {
  return request({
    url: '/config/commond/info',
    method: 'get',
    params: query
  })
}
